package com.example.screenpixel;

import com.example.screenpixel.slice.MainAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.hiviewdfx.HiLog;
import ohos.hiviewdfx.HiLogLabel;

public class MainAbility extends Ability {

    static final HiLogLabel loglabel = new HiLogLabel(HiLog.LOG_APP, 0x00101, "MainAbility");
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(MainAbilitySlice.class.getName());

        HiLog.info(loglabel, "设备宽度 : " + getResourceManager().getDeviceCapability().width);
        HiLog.info(loglabel, "设备高度 : " + getResourceManager().getDeviceCapability().height);

    }
}
